package lohr.lang.dom;



public class SlotDefinition extends Expression {
	//public final Parser SlotDefinition= sseq(opt(AccessModifier), IdentifierName, ASSIGN, Expression);

	final private Expression _initExpression;
	final private IdentifierName _name;
	final private AccessModifier _modifier;
	final private TypeReference _typeReference;

	public SlotDefinition(AccessModifier accessModifier, IdentifierName name, TypeReference type, Expression value) {
		addChild(_initExpression= value);
		addChild(_name= name);
		addChild(_typeReference= type);
		addChild(_modifier= accessModifier);
	}

	public Expression getInitExpression() {
		return _initExpression;
	}

	public IdentifierName getSlotIdentifier() {
		return _name;
	}

	public AccessModifier getModifier() {
		return _modifier;
	}

	public TypeReference getTypeReference() {
		return _typeReference;
	}
}
